<ul class="nav nav-tabs" id="tabs">
    <?php foreach ($this->tabs as $tab => $label): ?>
        <li class="<?php echo $this->active == $tab ? 'active' : '' ?>">
            <?php $data = strpos($tab, '#') !== false ? 'data-toggle="tab"' : '' ?>
            <a <?php echo $data ?> href="<?php echo $tab ?>">
                <?php echo $label ?>
            </a>
        </li>
    <?php endforeach; ?>
    <?php if ($this->category): ?>
        <li class="category">
            <?php echo $this->category == 'all' ? 'ALL CATEGORIES' : strtoupper($this->category) ?>
        </li>
    <?php endif ?>
</ul>